#import "NSString+category.h"
#import "DDRSAHandler.h"
@implementation NSString (category)
- (NSString *)dd_sign
{
    return [[DDRSAHandler dd_shareHandler] dd_signString:self];
}
- (NSString *)dd_md5
{
   return [[DDRSAHandler dd_shareHandler] dd_md5:self];
}
- (BOOL)dd_verifySign:(NSString *)sign
{
  return [[DDRSAHandler dd_shareHandler] dd_verifyString:self withSign:sign];
}
- (NSDictionary *)dd_rc4_dec:(NSString *)string;
{
   return [[DDRSAHandler dd_shareHandler] dd_rc4_dec:self key:[NSString stringWithFormat:@"appcenter%@",string]];
}

- (UIImage *)dd_image
{    
    NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"CC" ofType:@"bundle"];
    NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
    NSString *path = [bundle pathForResource:self ofType:@"png"];
    return [UIImage imageWithContentsOfFile:path];
}
@end
